//package com.telit.firecommand.controller;
//
//import com.telit.common.constant.Constant;
//import com.telit.common.entity.DataReturn;
//import com.telit.firecommand.dto.CommHistoryFireDTO;
//import com.telit.firecommand.dto.FireBurnedAreaDTO;
//import com.telit.firecommand.entity.CommHistoryFire;
//import com.telit.firecommand.entity.FileUploadLog;
//import com.telit.firecommand.service.PostDisasterManagementService;
//import com.telit.firecommand.vo.CommHistoryFireVO;
//import com.telit.firecommand.vo.FireBurnedAreaVO;
//import com.telit.firecommand.vo.FireTaskListVo;
//import com.telit.firecommand.vo.FireTraceVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//
///**
// * Create by Chencf 2022/10/01
// */
//@RestController
//@Api(tags = "灾后管理相关接口")
//@RequestMapping("/postDisasterManagement")
//public class PostDisasterManagementController {
//
//
//    @Autowired
//    private PostDisasterManagementService postDisasterManagementService;
//
//
//    @GetMapping("/queryAllHistoryFire")
//    @ApiOperation("/条件查询所有历史火情,默认查询全部")
//    public DataReturn queryAllHistoryFire(CommHistoryFireDTO commHistoryFireDTO){
//        Object object=postDisasterManagementService.queryAllHistoryFire(commHistoryFireDTO);
//        return DataReturn.ok(object);
//    }
//    //根据火情id查询火情历史信息
//    @GetMapping("/queryAllHistoryFireByFireId")
//    @ApiOperation("/根据fireid查询火情历史信息")
//    public DataReturn<CommHistoryFireVO> queryAllHistoryFireByFireId(@RequestParam(required = false) String fireId){
//        CommHistoryFireVO commHistoryFireVO=postDisasterManagementService.queryAllHistoryFireByFireId(fireId);
//        return DataReturn.ok(commHistoryFireVO);
//    }
//
//    //数据添加到历史火情表里面
//    //@PostMapping(value = "/addHistoryFire")
//    //@ApiOperation(value = "添加历史火情数据", httpMethod = Constant.REQUEST_METHOD_POST)
//    public DataReturn addHistoryFire(@Validated @RequestBody CommHistoryFire commHistoryFire){
//        postDisasterManagementService.addHistoryFire(commHistoryFire);
//        return DataReturn.ok();
//    }
//
//
//    @PostMapping(value = "/updateHistoryFire")
//    @ApiOperation(value = "修改历史火情数据", httpMethod = Constant.REQUEST_METHOD_POST)
//    public DataReturn updateHistoryFire(@Validated @RequestBody CommHistoryFire commHistoryFire){
//        postDisasterManagementService.updateHistoryFire(commHistoryFire);
//        return DataReturn.ok();
//    }
//
//    //查询火情火情回溯接口
//    @GetMapping(value = "/findFireTrace")
//    @ApiOperation(value = "查询火情火情回溯接口")
//    public DataReturn<FireTraceVO> findFireTrace(@RequestParam("fireId") String fireId ){
//     FireTraceVO fireTrace = postDisasterManagementService. findFireTrace(fireId);
//        return DataReturn.ok(fireTrace);
//    }
//
//
//    @GetMapping("/queryMediaById")
//    @ApiOperation("/根据火情id查询多媒体资源")
//    public DataReturn queryMediaById(@RequestParam("fireId") String  fireId){
//        return DataReturn.ok(postDisasterManagementService.queryMediaById(fireId));
//    }
//
//
//    //查询火烧迹地
//    @GetMapping("/findBurnedArea")
//    @ApiOperation("/根据火情id查询火烧迹地")
//    public DataReturn<FireBurnedAreaVO> findBurnedArea(@RequestParam("fireId") String  fireId){
//        FireBurnedAreaVO burnedArea = postDisasterManagementService.findBurnedArea(fireId);
//        return DataReturn.ok(burnedArea);
//    }
//
//    //火烧迹地修改
//    @PostMapping("/updateBurnedArea")
//    @ApiOperation("/绘制火烧迹地")
//    public DataReturn updateBurnedArea(@RequestBody FireBurnedAreaDTO fireBurnedAreaDTO){
//         postDisasterManagementService.updateBurnedArea(fireBurnedAreaDTO);
//         return DataReturn.ok();
//    }
//
//
//    //根据火情id查询火情对应的巡护任务
//    @GetMapping("/fireTaskList")
//    @ApiOperation("/根据火情id查询火情对应的巡护任务")
//    public DataReturn<List<FireTaskListVo>> fireTaskList(@RequestParam("fireId") String fireId) {
//        List<FireTaskListVo> result = postDisasterManagementService.fireTaskList(fireId);
//        return DataReturn.ok(result);
//    }
//
//
//    @PostMapping("/saveFireFiles")
//    @ApiOperation("/保存火情图片")
//    public DataReturn saveFireFiles(@RequestBody List<FileUploadLog> fireFiles) {
//        postDisasterManagementService.saveFireFiles(fireFiles);
//        return DataReturn.ok();
//    }
//
//}
